/**
 * 汪孟苹
 */
define([],function(){
    var tpl = {};

    tpl.list = function () {
        return list();
    }

    var list = function(){
       return   '<script id="growthList_list" type="text/html">' +
                '   {{each list as value}}'+
                '       {{if value.userId}}'+
                '           <div class="monitor-user-card clickbabycard" growthRecordId="{{value.growthRecordId}}" userId="{{value.userId}}">'+
                '                <div class="card-heading clearfix">'+
                '                    <img src="{{value.imgUrl}}">'+
                '                    <font class="user-name ellipsis-1">{{value.userName}}</font>'+
                '                    <font class="pull-right monitor-time">{{value.testTimeDesc}}</font>'+
                '                </div>'+
                '                <div class="card-body">'+
                '                    <div>'+
                '                        <div class="monitor-number {{value.heightClassName}}">{{value.height}}</div>'+
                '                        <div class="monitor-label">身高（cm）</div>'+
                '                    </div>'+
                '                    <div>'+
                '                        <div class="monitor-number {{value.weightClassName}}">{{value.weight}}</div>'+
                '                        <div class="monitor-label">体重（kg)</div>'+
                '                     </div>'+
                '                    <div>'+
                '                        <div class="monitor-number {{value.headCircumferenceClassName}}">{{value.headCircumference}}</div>'+
                '                        <div class="monitor-label">头围（cm）</div>'+
                '                    </div>'+
                '                </div>'+
                '           </div>'+
                '       {{else}}'+
                '           <div class="monitor-user-card"></div>'+
                '       {{/if}}'+
                '   {{/each}}'+
                '</script>';
    }

    return tpl;
});
